package org.finesys.common.log.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@Data
@ConfigurationProperties(prefix = "security.log")
public class LogProperties {
    /**
     * 是否启用
     */
    private boolean enabled;
    /**
     * 脱敏字段
     */
    @Value("${security.log.exclude-fields:password,mobile,phone,idcard}")
    private List<String> excludeFields;
    /**
     * 最大长度
     */
    private Integer maxLength = 2000;
}
